package cn.hp.crm.dao;

import cn.hp.crm.model.User;
import cn.hp.crm.util.PageBean;
import com.mysql.cj.protocol.Resultset;

import java.util.List;

public interface UserDao {
    boolean selectOneByNameAndPassword(String userName, String password);

    List<User> selectAll();

    int getAllCount(User user);

    List<User> getUsersLimit(PageBean pageBean, User user);

    int updatePasswordById(Integer id);

    int deleteById(String []ids);

    boolean selectOneByName(String userName);

    int add(User parameter);

    int updatePasswordByName(String userName, String newPassword);

    int UpdateImgByName(String user, String s);

    String selectImgByName(String user);

    List selectCountByType();
}
